import { ReactNode } from "react";
import { CommonComponentProps, Key } from "../factory/type";

export type GridBoxPropsItem<T extends Record<string, any>> = T & {
  key: Key;
  render: ReactNode | (() => ReactNode);
};

export interface GridBoxProps<T extends Record<string, any>> extends CommonComponentProps {
  size: number;
  items: GridBoxPropsItem<T>[];
  itemCls?: string;
  itemActiveCls?: string;
  allowClear?: boolean;
}
